/*
 * @Description: 资源描述
 * @Author: iamsmiling
 * @Date: 2021-06-06 23:24:06
 * @LastEditTime: 2021-06-06 23:30:29
 */
/*
 * @Description: 需求资源
 * @Author: iamsmiling
 * @Date: 2021-06-06 23:18:57
 * @LastEditTime: 2021-06-06 23:23:38
 */
import 'dart:ui';

import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/components/image/chimera_image.dart';
import 'package:flutter/material.dart';

class SourceDescriptionCard extends StatelessWidget {
  const SourceDescriptionCard({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.only(top: R.dimen.dp20, bottom: R.dimen.dp18),
      child: Column(
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Container(
            margin: EdgeInsets.only(right: R.dimen.dp10, bottom: R.dimen.dp16),
            child: Text(
              "资源图片",
              style: TextStyle(
                  fontSize: R.dimen.sp18,
                  fontWeight: FontWeight.w600,
                  foreground: Paint()
                    ..color = R.color.ff222222
                    ..shader = LinearGradient(colors: [
                      R.color.ff36b37c,
                      R.color.ff77d994,
                    ]).createShader(
                        Rect.fromLTWH(0, 0, R.dimen.dp70, R.dimen.dp18))),
            ),
          ),
          Wrap(
              spacing: R.dimen.dp14,
              runSpacing: R.dimen.dp10,
              children: List.generate(
                6,
                (index) => ChimeraImage(
                    width: (R.dimen.width - R.dimen.dp14 * 4) / 3,
                    height: (R.dimen.width - R.dimen.dp14 * 4) / 3,
                    src: "https://i.loli.net/2021/04/13/t3M15Z8oQCSLAgb.png"),
              ))
        ],
      ),
    );
  }
}
